速報APP / 教育 / LDFN - IGGI

LDFN - IGGI

價格:免費

更新日期:2016-05-21

檔案大小:1.9M

目前版本:1.0

版本需求:Android 1.6 以上版本

官方網站:http://appinventor.mit.edu/explore/master-trainers.html#nguyen

Email:admin@appinventor.vn

LDFN - IGGI(圖1)-速報App

http://appinventor.mit.edu/explore/master-trainers.html#nguyen

This app is created using MIT App Inventor to demonstrate its ability in CS courses, especially Algorithms.

Problem Introduction

Problem Introduction: The Fibonacci numbers are defined as follows: F0 = 0, F1 = 1, and Fi = Fi−1 + Fi−2 for i ≥ 2.

LDFN - IGGI(圖2)-速報App

Problem Description:

Task. Given an integer n, find the last digit of the nth Fibonacci number Fn (that is, Fn mod 10).

Input Format. The input consists of a single integer n.

Constraints. 0 ≤ n ≤ 10^7

LDFN - IGGI(圖3)-速報App

Output Format. Output the last digit of Fn.